namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    ///  订单详情表
    /// </summary>
    [SugarTable("order_detail_info")]
    public class OrderDetailInfo : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public int Id { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "line_code")]
        public string LineCode { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(ColumnName = "order_code")]
        public string OrderCode { get; set; }

        /// <summary>
        /// 产品ID（唯一）
        /// </summary>
        [SugarColumn(ColumnName = "product_id")]
        public string ProductId { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        [SugarColumn(ColumnName = "product_name")]
        public string ProductName { get; set; }

        /// <summary>
        /// 产品型号
        /// </summary>
        [SugarColumn(ColumnName = "product_type")]
        public string ProductType { get; set; }

        /// <summary>
        /// 产品状态（0：初始化，1：激活，2：关闭，3：暂停，4：完成，5：返修）
        /// </summary>
        [SugarColumn(ColumnName = "product_state")]
        public int? ProductState { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }

        /// <summary>
        /// 软删除（1-启用 0-弃用）
        /// </summary>
        [SugarColumn(ColumnName = "is_enabled")]
        public string IsEnabled { get; set; }

        /// <summary>
        /// MES上传标志位（0：未上传，1：已上传）
        /// </summary>
        [SugarColumn(ColumnName = "mes_pushed")]
        public int? MesPushed { get; set; }
    }
}